<?php

	session_start();

	require 'NotORM.php';
	require 'Slim/Slim.php';
	
	$pdo = new PDO('mysql:host=localhost;dbname=app.0', 'app.0', 'app.0');
	$db = new NotORM($pdo);
	
	\Slim\Slim::registerAutoloader();
	$app = new \Slim\Slim();
	
	require 'routes/authentication.php';
	require 'routes/user.php';
	require 'routes/company.php';
	
	$app->run();
	

